<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">导航列表</a></span>
            <div class="z-f-r"><span class="user-t">当前语言为：</span><span class="user-info"><?php echo $GLOBALS['langdata'][$GLOBALS['langtype']] ;?></span><!-- <a href="#">退出</a> --></div>
        </div>
        <div class="top-menu">
        	<ul>
            	<li class="current"><a href="#">导航列表</a></li>
				<li><a href="index.php?app=nav&act=add"  target="mainframe">新增导航</a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">

    <table  class="data" >
        <thead>
            <th >排序</th>
            <th >文字</th>
            <th >链接</th>
            <th >目标</th>
            <th >位置</th>
            <th >操作</th>
        </thead>
	    <tbody>
            <?php foreach((array)$navdata as $_key => $_value ){ ?>
            <tr >
	            <td>
	                <input type="text" style="width:30px; text-align:center" maxlength="3"  value="{$_value.sort_order}" name="sort"  onchange="ato_url('index.php?app=nav&act=lsort&id={$_value.nav_id}',this);" />                                           
	            </td>
	            <td>{$_value.str_pad}<input type="text" value="{$_value.name}" name="title"  onchange="ato_url('index.php?app=nav&act=lname&id={$_value.nav_id}',this);"/></td>
	            <td><a href="{$_value.link}" target="_blank">{$_value.link}</a></td>
	            <td>{$_value.config.target}</td>
	            <td>{$_value.whree}</td>
	            <td> 
	                <a href="?app=nav&act=edit&id={$_value.nav_id}" target="mainframe">修改</a>/
	                <a href="?app=nav&act=del&id={$_value.nav_id}" onClick="return confirm('确认删除此图片？此操作无法恢复！');">删除</a>
	            </td>
            </tr>                                    
            <?php } ?>
      
            <tr>
                <td align="center" colspan="6">
				    <input type="button" class="btn" value="添加新导航" onClick="to_url('index.php?app=nav&act=add');" />
                    <input type="button" class="btn" value=" 更新 "  onClick="to_url('index.php?app=nav&act=cache');" />
				</td>
            </tr>
	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span >管理员可以为系统定制导航菜单，显示于网站的顶部或底部。</span> </div>
    </div>
</div>
<!--{inc(footer.view.html)}-->